package com.cskaoyan.bean.data;

import com.cskaoyan.model.MarketGoods;
import com.cskaoyan.model.MarketTopic;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
public class TopicDetailData {

    private MarketTopic topic;
    private List<MarketGoods> goods;

    @NoArgsConstructor
    @Data
    public static class Topic {
        private Integer id;
        private String title;
        private String subtitle;
        private Double price;
        private String readCount;
        private String picUrl;
        private Integer sortOrder;
        private List<Integer> goods;
        private String addTime;
        private String updateTime;
        private Boolean deleted;
        private String content;
    }

    @NoArgsConstructor
    @Data
    public static class Goods {
        private Integer id;
        private String name;
        private String brief;
        private String picUrl;
        private Boolean isNew;
        private Boolean isHot;
        private Integer counterPrice;
        private Integer retailPrice;

    }
}
